import request from '@/utils/request'

// 查询sportsmanBodyFunction列表
export function listSportsmanBodyFunction(query) {
    return request({
        url: '/training/sportsmanBodyFunction/list',
        method: 'get',
        params: query
    })
}

// 查询sportsmanBodyFunction详细
export function getSportsmanBodyFunction(id) {
    return request({
        url: '/training/sportsmanBodyFunction/' + id,
        method: 'get'
    })
}

// 新增sportsmanBodyFunction
export function addSportsmanBodyFunction(data) {
    return request({
        url: '/training/sportsmanBodyFunction',
        method: 'post',
        data: data
    })
}

// 修改sportsmanBodyFunction
export function updateSportsmanBodyFunction(data) {
    return request({
        url: '/training/sportsmanBodyFunction',
        method: 'put',
        data: data
    })
}

// 删除sportsmanBodyFunction
export function delSportsmanBodyFunction(id) {
    return request({
        url: '/training/sportsmanBodyFunction/' + id,
        method: 'delete'
    })
}

// 导出sportsmanBodyFunction
export function exportSportsmanBodyFunction(query) {
    return request({
        url: '/training/sportsmanBodyFunction/export',
        method: 'get',
        params: query
    })
}